'use strict';
exports.main = async (event, context) => {
	//event为客户端上传的参数
	const db = uniCloud.database();
	var res = await db.collection("opendb-news-articles").where({_id:event.data.id}).remove();
	console.log('qss',res);
	//返回数据给客户端
	return {
		code:1,
		data:null,
		msg:"操作成功"
	}
};
